const mongoose = require("mongoose")
const Schema = mongoose.Schema
const NewsType = {
  title: String,
  content: String,
  category: Number,
  cover: String,
  isPublish: Number,
  editTime: Date,
  userid: String
}
const NewsModel = mongoose.model("new", new Schema(NewsType))
module.exports = NewsModel
